package com.example.appresult.Controller;

import com.example.appresult.common.AppResult1;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @RequestMapping("/test")
    public AppResult1 testResult(){
        String s = "你好";
        return AppResult1.failed("操作失败");
    }
    @RequestMapping("/test2")
    public String test2(){
        return "你好";
    }
    @RequestMapping("/test3")
    public Integer test3(){
        return 10;
    }

    @RequestMapping("/test4")
    public boolean test4(){
        return false;
    }
}
